package com.sxkf.template.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sxkf.template.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.math.BigDecimal;

public interface ProductService extends IService<Product>{
    
    void add(Product product);

    IPage<Product> page(String productName, String sortType,Integer pageNo, Integer pageSize, String userId);

    void edit(Product product);

    Boolean delete(String productId);

    IPage<Product> pageLike(Integer pageNo, Integer pageSize, String userId);

    IPage<Product> typePage(Integer pageNo, Integer pageSize, Double longitude, Double latitude, String cateId, String storeType, String searchType);

    Page<Product> specialSale(Page<Product> page, BigDecimal price, String type);
}
